package com.zuihai.app.mvp.model.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2017/6/10 0010.
 */

public class AliPayResponse {
    private final static int SUCCESS = 0000;

    @SerializedName("code")
    @Expose
    public int code;
    @SerializedName("msg")
    @Expose
    public String msg;
    @SerializedName("data")
    @Expose
    public String data;

    public boolean isSuccess(){
        return code == SUCCESS;
    }

    @Override
    public String toString() {
        return "WXPayResponse{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
